/**

 * 

 * @author maxd

 * @date 2019.8.1

 */

module.exports = {

		//微信的appId

		getWxAppid() {

			return 'wxb793be4e9400d6f2'

		},

		//淘宝的appid

		getTaoBaoAppid() {

			return uni.getStorageSync("taobaoAppid")

		},

		//淘宝的Secret

		getTaoBaoSecret() {

			return uni.getStorageSync("taobaoSecret")

		},

		//淘宝h5授权地址

		getTaoBaoRedirect() {

			return uni.getStorageSync("taobaoUrl")

		},

		//好单库接口淘宝名 必须英文的 tb_name

		getTaoBaoName() {

			return uni.getStorageSync("taobaoName")

		},

		//淘宝设置的PID

		getTaoBaoPid() {

			return uni.getStorageSync("taobaoPid")

		},

		//好单库Key

		getTaoBaoKey() {

			return uni.getStorageSync("haodankuKey")

		},

		//全局邀请码

		getInvitation() {

			return uni.getStorageSync("publicRelation")

		},

		//获取拼多多商城地址

		getPingDuoDuo() {

			return uni.getStorageSync("pinduoduo")

		},

		//获取拼多多默认地址

		getPingDuoDuoPid() {

			return uni.getStorageSync("pinduoduopid")

		},

		//京东默认pid

		getJDPid() {

			return uni.getStorageSync("jingdongpid")

		},

		//获取APP下载地址

		getAppDownUrl() {

			return uni.getStorageSync("appurl")

		},

		//全局域名 部分html中需要单独替换 需要修改config中的网络请求域名

		publicYuMing() {

			return 'https://tk.gomyorder.cn'

		},

		minMoney() {

			return uni.getStorageSync("minMoney") ? uni.getStorageSync("minMoney") : '0.3'

		},

		invitaionNum() {

			return uni.getStorageSync("invitaionNum")

		},

		maxMoney() {

			return uni.getStorageSync("maxMoney") ? uni.getStorageSync("maxMoney") : '0.7'

		},

		teamMoney() {

			return uni.getStorageSync("teamMoney")

		},



		logout() {

			this.remove("token");

			this.remove("id");

			this.remove("mobile");

			this.remove("openid");

			this.remove("nickName");

			this.remove("relation");

			this.remove("image_url");

			this.remove("relation_id");

		},

		loginClear() {

			this.remove("token");

			this.remove("id");

			this.remove("mobile");

			this.remove("nickName");

			this.remove("image_url");

			this.remove("relation_id");

		},

		showLoading(title) {

			uni.showLoading({

				title: title

			});

		},

		//打印提示框

		showToast(title) {

			uni.showToast({

				title: title,

				mask: true,

				duration: 500,

				icon: "none"

			});

		},

		// getSearchKeys: function(key) {

		//  let list = "套套，情趣用品，避孕，男用，女用，成人用品，保健品，冈本 杜蕾斯 杰士邦 第六感 倍力乐 诺丝 多乐士 斯香妮 双一 雨蝶 玛尼仕，充气娃娃，娃娃充气 阴蒂 刺激 超薄 螺纹 震动 润滑 女液体 延时 ";

		//  return list.includes(key);

		// },

		setJson: function(key, value) {

			let jsonString = JSON.stringify(value);

			try {

				uni.setStorageSync(key, jsonString);

			} catch (e) {

				// error

			}

		},

		removeData: function(key) {

			try {

				uni.setStorageSync(key, "");

			} catch (e) {

				// error

			}

		},

		setData: function(key, value) {

			try {

				uni.setStorageSync(key, value);

			} catch (e) {

				// error

			}

		},

		getData: function(key) {

				try {

					const value = uni.getStorageSync(key);

					if (value) {

						return value;

					}

				} catch (e) {

					// error

				}
				加载更多
